<#assign base=request.contextPath />
<#assign oneLabel="ERP管理">

<#assign twoLabel="供应商管理">
<#assign twoUrl=base+"/suppiler/list">

<#assign leafLabel="供应商列表">

<!DOCTYPE html>
<html lang="en">
<head>
	<#include "/commons/headImport.ftl">
</head>
<body>
<#include "/commons/header.ftl">
<form class="form-horizontal" name="formName">
<div class="row">
	<div class="col-xs-12">
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="form-field-1">名称</label>
			<div class="col-sm-4">
				<input type="text" name="keyWord" value="${queryVO.keyWord!''}" class="col-sm-8" />
			</div>
			<div class="col-sm-4orm-group center">
				<button class="btn btn-xs btn-success" type="button" id="search_id" url="${base}/suppiler/list">
					<i class="icon-search icon-on-right bigger-110"></i>查询
				</button>
				<button class="btn btn-xs" type="reset" id="reset_id" url="${base}/suppiler/list">
					<i class="icon-undo bigger-110"></i>重置
				</button>
			</div>
		</div>
		<div class="space-4"></div>
	
		<div class="table-responsive">
			<p>
				<@shiro.hasPermission name="/suppiler/add">
				<button class="btn btn-minier btn-success" id="to_add_id" url="${base}/suppiler/add">
					<i class="icon-plus bigger-110"></i>新增供应商
				</button>
				</@shiro.hasPermission>
			</p>
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th class="center" width="5%">#</th>
						<th width="10%">名称</th>
						<th width="11%">负责人</th>
						<th width="10%">状态</th>
						<th width="25%">备注</th>
						<th width="12%"><i class="icon-time bigger-110 hidden-480"></i>创建时间</th>
						<th width="12%"><i class="icon-time bigger-110 hidden-480"></i>修改时间</th>
						<th width="15%"></th>
					</tr>
				</thead>
				<tbody>
				<#if pr??>
					<#list pr.data as suppiler>									
					<tr>
						<td class="center">${suppiler_index+1}</td>
						<td>${suppiler.name!'--'}</td>
						<td>${suppiler.legalPerson!'--'}</td>
						<td>${(statusMap['${suppiler.status}'])!'--'}</td>
						<td title="${suppiler.remark}">
							<#if (suppiler.remark?length > 10)>${suppiler.remark?substring(0,9)}...<#else>${suppiler.remark}</#if>
						</td>
						<td>${suppiler.gmtCreate?string('yyyy/MM/dd HH:mm')}</td>
						<td>${(suppiler.gmtUpdate?string('yyyy/MM/dd HH:mm'))!}</td>
						<td>
							<div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
								<@shiro.hasPermission name="/suppiler/edit">
								<a class="btn btn-minier btn-success" href="javascript:get('${base}/suppiler/edit/${suppiler.id}');" title="编辑">
									<i class="icon-edit bigger-120"></i>编辑
								</a>
								</@shiro.hasPermission>
								<@shiro.hasPermission name="/suppiler/delete">
								<a class="btn btn-minier btn-danger id-btn-dialog2" 
									data='({"url":"${base}/suppiler/delete/${suppiler.id}","form":"formName"})' 
									href="javascript:void(0);" title="删除">
									<i class="icon-trash bigger-120"></i>删除
								</a>
								</@shiro.hasPermission>
							</div>
						</td>
					</tr>
					</#list>
				</#if>
				<#if ((pr.data)?size==0)>
					<tr>
						<td colspan="8" class="center">没有查询任何数据</td>
					</tr>
				</#if>
				</tbody>
			</table>
			<@p.p pageParam=pr toURL="${base}/suppiler/list" formName="formName"/>
		</div><!-- /.table-responsive -->
	</div><!-- /span -->
</div><!-- /row -->
</form>
<#include "/commons/footer.ftl">
</body>
</html>
